-- GENERATED SPELL FOR [The Leaper] --


function spell0_29859(pUnit, Event) --@Hunger For Blood,Self--
pUnit:FullCastSpellOnTarget(60177,pUnit)
pUnit:RegisterEvent('Sorts_29859', 30306, 1)
end

function spell1_29859(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(60195,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29859', 600, 1)
end

function Sorts_29859(pUnit, Event)
local choix_sorts_29859 = math.random(0, 1)
if choix_sorts_29859 == 0 then
pUnit:RegisterEvent('spell0_29859', 1, 1)
end
if choix_sorts_29859 == 1 then
pUnit:RegisterEvent('spell1_29859', 1, 1)
end
end

function mob29859_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29859', math.random(1500, 3000), 1)
end

function mob29859_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29859_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29859_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29859, 1, 'mob29859_Action')
RegisterUnitEvent(29859, 2, 'mob29859_Leave')
RegisterUnitEvent(29859, 3, 'mob29859_Kill')
RegisterUnitEvent(29859, 4, 'mob29859_Die')
